package com.example.demo.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class BookInfo {
    private Integer id;
    private String bookName;
    private String author;
    private Integer count;
    //前端的精度展示，不然22.00就会丢失精度
 @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal price;
    private String publish;
    //1.表示可借阅，2.不可借阅
    private  Integer status;
    private  String   statusCN;

}
